package com.boomsecret.channel;

import java.io.OutputStream;
import java.net.Socket;

/**
 * @Author: wangjinliang
 * @Date: 2019/7/29 16:08
 */
public class SocketDemo {
    public static void main(String[] args) throws Exception {
        Socket socket  = new Socket("localhost", 8080);
        OutputStream outputStream = socket.getOutputStream();
        outputStream.write("11111111111".getBytes());
        outputStream.write("22222222222".getBytes());
        outputStream.write("33333333333".getBytes());
        outputStream.flush();
        socket.close();
    }
}
